using System;
using XUCore.Ddd.Domain;
using XUCore.NetCore.DynamicWebApi;
using XUCore.NetCore.FreeSql.Curd;
using XUCore.NetCore.FreeSql.Entity;

namespace XUCore.NetCore.FreeSql
{
    /// <summary>
    /// CURD API 服务（默认主键long类型）<para></para>
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TDto">返回实体</typeparam>
    public abstract class LongCurdAppService<TEntity, TDto> :
        AbstractCurdAppService<long, TEntity, TDto>, IDynamicWebApi, IScoped
        where TEntity : class, IEntity<long>, new()
        where TDto : class, new()
    {
        public LongCurdAppService(IServiceProvider serviceProvider)
            : base(serviceProvider)
        {

        }
        public LongCurdAppService(IServiceProvider serviceProvider, IFreeSql freeSql)
            : base(serviceProvider, freeSql)
        {

        }
    }
}